const isBirthday = true
const greeting = isBirthday ? "小王生日快乐！" : "小王早上好。";
console.log(greeting)
const age = 20;
const isAdult = age >= 18 ? "成年" : "未成年";
console.log(isAdult);